define(['jquery', 'bootstrap', 'frontend', 'form', 'template'], function ($, undefined, Frontend, Form, Template) {
    var validatoroptions = {
        invalid: function (form, errors) {
            $.each(errors, function (i, j) {
                Layer.msg(j);
            });
        }
    };
    var Controller = {
        index: function () {
          
           console.log(2222222);
           
            
            Form.api.bindevent($("#login-form1"), function (data, ret) {
                setTimeout(function () {
                 
                    
                    location.href = ret.url ? ret.url : "/";
                }, 1000);
            });
            
        },

    };
    return Controller;
});
